package com.lee.study.mvc;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HiMVC {

    @Value("${hello}")
    private String hello;

    @RequestMapping("/himvc")
    @ResponseBody
    public String hiMvc(HttpServletRequest request) {
        return "lixuwei -- " + hello;
    }
}
